<tr class="blocktitle">
    <td colspan="2">
      您当前的操作为管理员帐户<font color="#006fc4">【{$admincolumninfo['user_login']}】</font>进行操作权限分配！
    </td>
</tr>
<php>foreach($adminmodulemenupri as $menu){</php>
<tr>
    <th>
    	<div class="checkbox">
        	<label for="adminpriall{$menu.id}">
            	<input type="checkbox" class="adminpriall" id="adminpriall{$menu.id}" {$menu.adminpricheck}>
                <span>{$menu.name}</span>
            </label>
        </div>
    </th>
    <td>
    	<div class="checkbox">
            <p>
            	<label for="adminpriall{$menu.id}" style="font-weight:normal">
                	<input type="checkbox" class="adminpriall" name="parameter[textpara_jsontype_adminpri][]" id="adminpriall{$menu.id}" value="admin{$menu.id}pri" {$menu.adminpricheck}>
            		<span>{$menu.name}</span>
                </label>
            </p>
            <php>if(count($menu['menu2']) > 0 && empty($menu['menu2'][0]['ismenu1ok'])){</php>
            <php>foreach($menu['menu2'] as $menu2){</php>
                <p>
                    |--
                    <label for="adminpri{$menu2.id}" style="font-weight:normal">
                    	<input type="checkbox" name="parameter[textpara_jsontype_adminpri][]" id="adminpri{$menu2.id}" value="admin{$menu2.id}pri" {$menu2.adminpricheck}>
                    	<span>{$menu2.name}</span>
                    </label>
                    <php>if(!empty($menu2['menu3']) > 0){</php>
                        <br />
                        |--|--
                        <php>foreach($menu2['menu3'] as $menu3){</php>
                        <label for="adminpri{$menu3.id}" style="font-weight:normal">
                        	<input type="checkbox" name="parameter[textpara_jsontype_adminpri][]" id="adminpri{$menu3.id}" value="admin{$menu3.id}pri" {$menu3.adminpricheck}>
                        	<span>{$menu3.name}</span>
                        </label>
                        <php>}</php>
                    <php>}</php>
                </p>
            <php>}</php>
            <php>}</php>
        </div>
    </td>
</tr>
<php>}</php>
<script>
$(function () {
	//全选或全不选
	$(".adminpriall").click(function(){
		if(this.checked){   
			$(this).parent().parent().parent().parent().find("td :checkbox").prop("checked", true);  
		}else{
			$(this).parent().parent().parent().parent().find("td :checkbox").prop("checked", false);
		}   
	 }); 
}); 
</script>